<?php
$file_path = 'http://eroticfantasy.ru/photo/STM-10166SM_a.jpg';
						
						$curl = curl_init($file_path);
						curl_setopt($curl, CURLOPT_HEADER ,1);
						curl_setopt($curl, CURLOPT_NOBODY ,1);
						curl_setopt($curl, CURLOPT_RETURNTRANSFER ,1);
						curl_setopt($curl,CURLOPT_USERAGENT,'Googlebot/2.1 (+http://www.google.com/bot.html)');
						curl_exec($curl);
						$image_size = curl_getinfo($curl,CURLINFO_CONTENT_LENGTH_DOWNLOAD);
						$http_code = curl_getinfo($curl,CURLINFO_HTTP_CODE);
						curl_close($curl);
echo $image_size;						
 ?>